package com.design.pattern.command;

public class ConcreteCommand implements Command{
    Receiver receiver;

    public Receiver getReceiver() {
        return receiver;
    }

    public ConcreteCommand setReceiver(Receiver receiver) {
        this.receiver = receiver;
        return this;
    }

    @Override
    public void exec() {
        getReceiver().exec("执行命令的行为");
    }
}
